package com.water.bs.service;

import com.water.bs.mapper.EmailMapper;
import com.water.bs.pojo.EmailCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;
@Service
public class EmailService {
    @Autowired
    private EmailMapper emailMapper;
    public int saveEmailCode(Map<String,Object> map){return emailMapper.saveEmailCode(map);}

    public EmailCode getEmailCode(String userEmail){return emailMapper.getEmailCode(userEmail);}

    public int deleteEmailCode(String userEmail){return emailMapper.deleteEmailCode(userEmail);}

    public int isEmailRepeat(String userEmail){return emailMapper.isEmailRepeat(userEmail);}

    public int isEmailRepeatOrg(String orgEmail){return emailMapper.isEmailRepeatOrg(orgEmail);}
}
